// lib/constant_button.dart
import 'package:flutter/material.dart';

class ConstantButton extends StatelessWidget {
  final String title;
  final VoidCallback onPressed;

  const ConstantButton({
    super.key,
    required this.onPressed,
    required this.title,
  });

  @override
  Widget build(BuildContext context) {
    return ElevatedButton(
      onPressed: onPressed,
      style: ElevatedButton.styleFrom(
        backgroundColor: Colors.white,
        padding: EdgeInsets.symmetric(horizontal: 12,),
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(3),
          side: BorderSide(color: Color(0xFF2782D7), width: 1),
        ),
      ),
      child: Text(
        title,
        style: TextStyle(fontSize: 16, color: Color(0xFF2782D7)),
      ),
    );
  }
}
